import request from '@/utils/request'

// 查询场馆门票列表
export function listVenues(query) {
  return request({
    url: '/ticket/venues/list',
    method: 'get',
    params: query
  })
}

// 查询场馆门票详细
export function getVenues(venuesId) {
  return request({
    url: '/ticket/venues/' + venuesId,
    method: 'get'
  })
}

// 新增场馆门票
export function addVenues(data) {
  return request({
    url: '/ticket/venues',
    method: 'post',
    data: data
  })
}

// 修改场馆门票
export function updateVenues(data) {
  return request({
    url: '/ticket/venues',
    method: 'put',
    data: data
  })
}

// 删除场馆门票
export function delVenues(venuesId) {
  return request({
    url: '/ticket/venues/' + venuesId,
    method: 'delete'
  })
}
// 查询场馆信息
export function getListTicOherBase() {
  return request({
    url: '/ticket/scenic/listTicOherBase?otherBaseType='+3,
    method: 'get'
  })
}

// 查询方案信息
export function getListScenic() {
  return request({
    url: '/ticket/programme/listSelect',
    method: 'get'
  })
}

// 上架
export function getOnshelf(venuesId) {
  return request({
    url: '/ticket/venues/onshelf/' + venuesId,
    method: 'get'
  })
}
// 下架
export function getOffshelf(venuesId) {
  return request({
    url: '/ticket/venues/offshelf/' + venuesId,
    method: 'get'
  })
}